import React from 'react';
import useAppStore from '@ide/store';
import { versionConfig } from '@/config';


// 执行结果
export function ExecResult() {
  const { isPluginReady } = useAppStore();
  return <div className="deploy-result tea-mt-4n">
    <p className="white-text">执行结果</p>
    <div className="content">
      {isPluginReady === false || '插件已准备就绪'}
      {isPluginReady === true || <p>
            检测到您未安装长安链Web签名插件，请点击
        <a target="_blank" href={versionConfig.pluginDownloadPage} rel="noreferrer">
              下载并安装
        </a>
            后，再部署合约
      </p>
      }
    </div>
  </div>;
}
